package com.example.entity;

/**
 * create by: Jipson Liang
 * on: 2020/11/15 19:32
 * desc:
 */
public class Course {
    private Long courseId;
    private String courseName;
    private Integer courseHour;
    private Integer courseScore;

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Integer getCourseHour() {
        return courseHour;
    }

    public void setCourseHour(Integer courseHour) {
        this.courseHour = courseHour;
    }

    public Integer getCourseScore() {
        return courseScore;
    }

    public void setCourseScore(Integer courseScore) {
        this.courseScore = courseScore;
    }
    // 无参构造
    public Course() {
    }
    // 有参构造
    public Course(Long courseId, String courseName, Integer courseHour, Integer courseScore) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.courseHour = courseHour;
        this.courseScore = courseScore;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", courseHour=" + courseHour +
                ", courseScore=" + courseScore +
                '}';
    }
}
